<?php
defined('IN_TS') or die('Access Denied.');

$groupid = intval($_GET['id']);
$arrGroup = aac('group')->find('group',array('groupid'=>$groupid));
$leader = aac('user')->getOneUser($arrGroup['userid']);
switch($arrGroup['province']){
    case '北京':
        $city = '北京';
        break;
    case '上海':
        $city = '上海';
        break;
    case '天津':
        $city = '天津';
        break;
    default:
        switch($arrGroup['city']){
            case '佛山':
                $city = '广州';
                break;
            default:
                $city = $arrGroup['city'];
                break;
        }
        break;
}
$arrUser = aac('user')->find('user_info',array('userid'=>$GLOBALS['TS_USER']['userid']));
$groupUser = aac('group')->find('group_user',array('groupid'=>$groupid,'userid'=>$GLOBALS['TS_USER']['userid']));
if(!$groupUser){
    tsNotice('你还没在微澜社区报名'.$arrGroup['groupname'].'馆员，请补报！',  '点击报名', tsUrl('my','setting',array('ts'=>'base','groupid'=>$groupid,'jointype'=>1)));
}
if($groupUser['isrenzheng']==1){
    aac('group')->update('group_user',array('groupid'=>$groupid,'userid'=>$GLOBALS['TS_USER']['userid']),array('wechat'=>1));
}
$title = '欢迎'.$arrGroup['groupname'].'新馆员';
$meeting =  aac('system')->find('system_options',array('optionname'=>'meetingroom'));
include template("newvo");